<!--
 * @Author: early-autumn
 * @Date: 2020-05-27 14:34:40
 * @LastEditors: early-autumn
 * @LastEditTime: 2020-06-02 15:07:47
-->
<template>
  <el-dialog
    title="前台开单"
    width="1380px"
    :visible="value"
    @close="handleClose"
  >
    <billing
      v-if="value"
      front-desk
      :patient="data.yiyaClinicPerson"
      :appointment="data.yiyaAppointment"
      :tc="tc"
      @cancel="handleClose"
    ></billing>
  </el-dialog>
</template>

<script>
import Billing from '@/components/yiya/Billing'

export default {
  name: 'TeethCleanBilling',
  components: {
    Billing,
  },
  model: {
    prop: 'value',
    event: 'close',
  },
  props: {
    value: {
      type: Boolean,
      default: false,
    },
    data: {
      type: Object,
      default: () => ({}),
    },
    tc: {
      type: String,
      default: '',
    },
  },
  methods: {
    handleClose() {
      this.$emit('close', false)
    },
  },
}
</script>

<style></style>
